import request from '@/utils/request'

// 查询空间统计列表
export function listSpaceStatistics(query) {
  return request({
    url: '/informfrontend/spaceStatisticsBack/list',
    method: 'get',
    params: query
  })
}

// 查询空间统计详细
export function getSpaceStatistics(id) {
  return request({
    url: '/informfrontend/spaceStatisticsBack/' + id,
    method: 'get'
  })
}

// 新增空间统计
export function addSpaceStatistics(data) {
  return request({
    url: '/informfrontend/spaceStatisticsBack',
    method: 'post',
    data: data
  })
}

// 修改空间统计
export function updateSpaceStatistics(data) {
  return request({
    url: '/informfrontend/spaceStatisticsBack',
    method: 'put',
    data: data
  })
}

// 删除空间统计
export function delSpaceStatistics(id) {
  return request({
    url: '/informfrontend/spaceStatisticsBack/' + id,
    method: 'delete'
  })
}
